Platform Explorer / Nuxeo Platform LTS 2015 7.10

Component org.nuxeo.runtime.management.ResourcePublisher

Documentation

Management resource publishers, resources can be nuxeo services or factories.

Implementation

Class: org.nuxeo.runtime.management.ResourcePublisherService

Services

Extension Points

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.runtime.management.ResourcePublisher">

	<documentation>
    	Management resource publishers, resources can be nuxeo services or factories.
  	</documentation>

  <implementation class="org.nuxeo.runtime.management.ResourcePublisherService" />

  <service>
    <provide interface="org.nuxeo.runtime.management.ResourcePublisher" />
  </service>

  <require>org.nuxeo.runtime.management.ServerLocator</require>
  
  <extension-point name="services">
    <documentation>
        <p>Publish a nuxeo service as a management resource.</p>
        <p>Here is the parameters description : 
        the <emph>name</emph> is used as a shortcut name, 
        the <emph>ifaceClass</emph> is used to locate the service,
        the <emph>class</emph> is instrumented for publishing management information.</p>
        <p>The following line figures out how we have published the runtime management service itself.
        <br/>&lt;service name="managementResourcePublisher" class="org.nuxeo.runtime.management.ResourcePublisher" ifaceClass="prg.nuxeo.runtime.management.ResourcePublisherService"&gt;
        </p>
    </documentation>
    <object class="org.nuxeo.runtime.management.ServiceDescriptor" />
  </extension-point>

  <extension-point name="factories">
      <documentation>
        <p>Publish a class that will be call backed at initialization time for
        registering resources.</p>
    	<p>The following information have to be provided : the fully qualified factory <emph>class</emph> name.
    	The referenced class should implement <emph>ResourceFactory</emph> class.</p>
    	<p>The following line figures out how to publish a factory.<br/>
    	&lt;factory class="my.FactoryClass"&gt;
    	</p>
      </documentation>
    <object class="org.nuxeo.runtime.management.ResourceFactoryDescriptor" />
  </extension-point>

  <extension-point name="shortcuts">
      <documentation>
        <p>Define a shortcuts to a published resource.</p>
        <p>Nuxeo's published resources are published by the service using that shortcut</p>
        <p>The following information have to be provided : the shortcut <emph>name</emph>, the management <emph>qualifiedName</emph> and the mbean server <emph>locator</emph> pattern.</p>
        <p>The following line figures out how using it.<br/>
        &lt;shortcut name="publisher" qualifiedName="org.nuxeo:name=managementResourcePublisher,type=service" locator="org.nuxeo"/&gt;
        </p>
      </documentation>
    <object class="org.nuxeo.runtime.management.ShortcutDescriptor" />
  </extension-point>

  <extension target="org.nuxeo.runtime.management.ResourcePublisher"
    point="services">
    <service name="managementResourcePublisher" class="org.nuxeo.runtime.management.ResourcePublisher" ifaceClass="prg.nuxeo.runtime.management.ResourcePublisherService"/>
  </extension>

</component>